package com.tencent.wxcloudrun.service.impl;

import com.tencent.wxcloudrun.dao.UserMapper;
import com.tencent.wxcloudrun.dto.UserEntity;
import com.tencent.wxcloudrun.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public UserEntity loginUser(Map<String, Object> userInfo) {
        return userMapper.LoginUser(userInfo);
    }

    @Override
    public boolean SignInUser(UserEntity user) {
        return userMapper.SignInUser(user);
    }

    @Override
    public boolean UpdateUser(Map<String, Object> userInfo) {
        return userMapper.UpdateUser(userInfo);
    }
}
